package com.qianyu.project.web.controller.lyz;

import com.qianyu.project.entity.MaterialNeedDetail;
import com.qianyu.project.service.IMaterialNeedDetailService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lyz
 * @date create in 2021/2/22 10:36
 */
@RestController
@RequestMapping("/MaterialNeedDetail")
public class MaterialNeedDetailController {
    @Autowired
    private IMaterialNeedDetailService service;

    @GetMapping("/{id}")
    public Result getDetailList(@PathVariable String id){
        List<MaterialNeedDetail> detailList=service.getDetailListById(id);
        return ResultTool.success();
    }
}
